package org.feisoft.transaction.supports;

import org.feisoft.transaction.xa.TransactionId;

public interface TransactionListener
{

    public void onPrepareStart(TransactionId xid);

    public void onPrepareSuccess(TransactionId xid);

    public void onPrepareFailure(TransactionId xid);

    public void onCommitStart(TransactionId xid);

    public void onCommitSuccess(TransactionId xid);

    public void onCommitFailure(TransactionId xid);

    public void onCommitHeuristicMixed(TransactionId xid);

    public void onCommitHeuristicRolledback(TransactionId xid);

    public void onRollbackStart(TransactionId xid);

    public void onRollbackSuccess(TransactionId xid);

    public void onRollbackFailure(TransactionId xid);

}
